 ///
 /// @file    multiDerived.cc
 /// @author  lemon(haohb13@gmail.com)
 /// @date    2016-03-12 11:43:21
 ///
 
#include <iostream>
using std::cout;
using std::endl;

class A
{
public:
	void show()
	{
		cout << "A::print()" << endl;
	}
};

class B
{
public:
	void show()
	{
		cout << "B::show()" << endl;
	}
};

class C : public A, public B
{//对于继承而言，默认情况下就是privarte继承
public:
	void display()
	{
		A::show();
	}
};

int main(void)
{
	C c;
	c.A::show();
	c.B::show();
	c.display();
}
